package com.example.fengshoutong.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Property;

@Entity
public class Good {
    /**
     * 货品标题
     */
    @Property(nameInDb = "LABEL")
    private String label;
    /**
     * 货品详情描述
     */
    @Property(nameInDb = "CONTENT")
    private String content;
    /**
     * 货品类型，0为水果蔬菜，1为米面粮油，2为农资农具
     */
    @Property(nameInDb = "TYPE")
    private int type;
    /**
     * 货品价格
     */
    @Property(nameInDb = "PRICE")
    private String price;
    /**
     * 货品图像id
     */
    @Property(nameInDb = "IMAGE_URI")
    private String imageUri;
    /**
     * 货品地址
     */
    @Property(nameInDb = "ADDRESS")
    private String address;

    @Generated(hash = 1085196589)
    public Good(String label, String content, int type, String price, String imageUri,
                String address) {
        this.label = label;
        this.content = content;
        this.type = type;
        this.price = price;
        this.imageUri = imageUri;
        this.address = address;
    }

    @Generated(hash = 2016981037)
    public Good() {
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getImageUri() {
        return imageUri;
    }

    public void setImageUri(String imageUri) {
        this.imageUri = imageUri;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Good{" +
                "label='" + label + '\'' +
                ", content='" + content + '\'' +
                ", type=" + type +
                ", price='" + price + '\'' +
                ", imageUri=" + imageUri +
                ", address='" + address + '\'' +
                '}';
    }
}
